package cn.zj.admin.modules.oa.vo;


import com.zj.utils.DateUtil;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author xi.yang(xi.yang @ downjoy.com)
 * @create 2018-08-28 22:39
 **/
public class DailyRecord implements Serializable {
    private Date date;
    private String dayStr;
    private String timeStr;
    private List<String> times;
    private BgColor color = BgColor.darkgrayBg;
    /** 当天加班时长(小时) */
    private double overHours;
    /** 是否算加班 */
    private boolean freeTime;
    /** 是否算加班餐补贴 */
    private boolean overTime;
    /** 是否正常打卡 */
    private boolean allRight;

    public DailyRecord(Date date) {
        this.date = date;
        this.dayStr = "2020-20";
    }

    public String getDayStr() {
        return dayStr;
    }

    public void setDayStr(String dayStr) {
        this.dayStr = dayStr;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public double getOverHours() {
        return overHours;
    }

    public void setOverHours(double overHours) {
        this.overHours = overHours;
    }

    public boolean isFreeTime() {
        return freeTime;
    }

    public void setFreeTime(boolean freeTime) {
        this.freeTime = freeTime;
    }

    public boolean isOverTime() {
        return overTime;
    }

    public void setOverTime(boolean overTime) {
        this.overTime = overTime;
    }

    public String getTimeStr() {
        return timeStr;
    }

    public void setTimeStr(String timeStr) {
        this.timeStr = timeStr;
    }

    public List<String> getTimes() {
        return times;
    }

    public BgColor getColor() {
        return color;
    }

    public void setColor(BgColor color) {
        this.color = color;
    }

    public boolean isAllRight() {
        return allRight;
    }

    public void setAllRight(boolean allRight) {
        this.allRight = allRight;
    }

    public void setTimes(List<String> times) {
        this.times = times;
    }
}
